package com.ruixun.shopmanagement.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruixun.shopmanagement.dao.CategoryMapper;
import com.ruixun.shopmanagement.entity.Category;
import com.ruixun.shopmanagement.service.inter.CategoryService;

@Service
public class CategoryServiceImpl implements CategoryService {
	
	@Autowired
	CategoryMapper categoryMapper;
	
	
	@Override
	public List<Category> findAllCategory() {
		// TODO Auto-generated method stub
		return categoryMapper.selectAll();
	}


	@Override
	public Category findOneByCid(int cid) {
		// TODO Auto-generated method stub
		return categoryMapper.selectOneByCid(cid);
	}

}
